import request from '@/utils/request'

// 查询挂号列表
export function listRegistered(query) {
  return request({
    url: '/registered/registered/list',
    method: 'get',
    params: query
  })
}

// 查询挂号详细
export function getRegistered(registeredId) {
  return request({
    url: '/registered/registered/' + registeredId,
    method: 'get'
  })
}

// 新增挂号
export function addRegistered(data) {
  return request({
    url: '/registered/registered',
    method: 'post',
    data: data
  })
}

// 修改挂号
export function updateRegistered(data) {
  return request({
    url: '/registered/registered',
    method: 'put',
    data: data
  })
}

// 删除挂号
export function delRegistered(registeredId) {
  return request({
    url: '/registered/registered/' + registeredId,
    method: 'delete'
  })
}
